/**
 * Created by Administrator on 2016/5/15.
 */
//当点击输入框后，让相关搜索出来，让顶部导航栏消失，让搜索框变短取消按钮出现
function hidetopbar()
{
    document.getElementById('topbar').style.display = "none";;
    document.getElementById('topbar2').style.display = "none";


    document.getElementById('sel').style.display='inline-block';
    document.getElementById('sel').style.width = 81 + '%';
    document.getElementById('cancel').style.display='inline-block';
    document.getElementById('centernull').style.display="inline-block";

    document.getElementById('glass').style.width=100+ '%';

    document.getElementById('sel_result').style.display = "block";
    document.getElementById('moreinfo').style.display = "none";

    document.getElementById('list').style.display='none';
    document.getElementById('number').style.display='none';
}
//当点击取消按钮后相关搜索消失，顶部导航栏出现，搜索框变长取消按钮消失
function showtopbar(){
    document.getElementById('topbar').style.display = "block";;
    document.getElementById('topbar2').style.display = "block";
    document.getElementById('sel_result').style.display = "none";

    //document.getElementById('sel').style.display='inline-block';
    document.getElementById('sel').style.width = 94 + '%';
    document.getElementById('cancel').style.display='none';

    //document.getElementById('myinput').value=document.getElementById('input2');
    document.getElementById('myinput').value=document.getElementById('input2').innerText;

    document.getElementById('number').style.display='block';//没有这个id。所以要放在最后一句。
    document.getElementById('list').style.display='block';   //取消时不需要隐藏搜索结果.有时搜索结果为空时，没有这个id。所以要放在最后一句。
    //document.getElementById('myinput').value=;//请空input输入框
}
function back(){
    window.history.back();
}